package com.sun.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    // http://localhost:8080/hello
    @GetMapping(value = "/hello")
    public String hello() {
        return "hello";
    }

    // http://localhost:8080/home
    @GetMapping(value = "/home")
    public String home() {
        return "hello home";
    }

    // http://localhost:8080/test
    @GetMapping(value = "/test")
    public String test() {
        return "hello test";
    }

}

